<table class="rightcolumn">
	<tr>
		<td>
			<table class="width">
				<tr>
					<td class="inshadow">
						<table class="content">
							<tr>
								<td class="leftshadow"></td>
								<td class="content">
									<table class="box" id="connectDisconnect">
										<tr>
											<th id="connectButtonBox">
												<a myFor="rightContentBox" href="?section=user_area" title="Custom area" id="connectButton"></a>
											</th>
										</tr>
										<tr>
											<td class="content">
												<table class="boxInside">
													<tr>
														<td class="rowborder"></td>
													</tr>
													<tr>
														<td class="row">
															<a myFor="rightContentBox" href="?section=user_area" title="Custom area"><span id="connectStatusName"></span></a>
														</td>
													</tr>

													<tr>
														<td class="row">
															<a myFor="rightContentBox" href="?section=user_area" title="Conexión"  id="disconnectLink"><span id="disconnectText">Desconectar</span></a>
														</td>
													</tr>
													<tr>
														<td class="rowborder"></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
									<div class="space"></div>
									<div id="mini_order">
										<?php include($server->get_path_name('cart_tp.php')); ?>
									</div>
									<div class="space"></div>
									<div class="space"></div>
									<table class="links">
										<tr>
											<td class="content">
												<a href="http://www.singranos.com" target="_blank">Singranos.com</a>
												<a href="http://www.acne0.com" target="_blank">Acne0</a>
												<a href="http://www.aloeveraweb.com" target="_blank">Aloeveraweb</a>
											</td>
										</tr>
									</table>
									<img class="logo" src="<?php echo $server->my_site[0]->path.$server->my_site[0]->folder; ?>images/logo.gif">
								</td>
								<td class="rightshadow"></td>
							</tr>
							<tr>
								<td class="bottomleft"></td>
								<td class="bottomcenter"></td>
								<td class="bottomright"></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<script type="text/javascript">
initLoadingElements("connectDisconnect");
<?php
	if ($user->id) {
?>
document.getElementById("connectButtonBox").className = "connected";
document.getElementById("connectButton").innerHTML = "Conectado";
document.getElementById("connectStatusName").innerHTML = "<?php echo $user->firstname." ".$user->lastname ?>";
document.getElementById("disconnectText").innerHTML = "Desconectar";
document.getElementById("disconnectLink").href = "?section=disconnect";
<?php
	}
	else {
?>
document.getElementById("connectButtonBox").className = "disconnected";
document.getElementById("connectButton").innerHTML = "Conectar";
document.getElementById("connectStatusName").innerHTML = "invitado";
document.getElementById("disconnectText").innerHTML = "No estás conectado";
document.getElementById("disconnectLink").href = "?section=user_area";

<?php
	}
?>
	var myOrder=new orderNode();
	myCatalog.myOrderNode=myOrder;
	myOrder.loadItemsListView("cartItemsList");
	myOrder.refreshItemsListView("cartItemsList");
	myOrder.mySetOrderBox("mini_order");
</script>